#!/bin/bash

sed -i.bak 's#https://downloads.openwrt.org/#https://mirrors.aliyun.com/openwrt/#g' /etc/opkg/distfeeds.conf
opkg update
opkg install luci-i18n-base-zh-cn
opkg install luci-i18n-opkg-zh-cn
opkg install luci-i18n-firewall-zh-cn
opkg install luci-i18n-ttyd-zh-cn
opkg install luci-i18n-nlbwmon-zh-cn
opkg install luci-mod-dashboard
opkg install luci-i18n-dashboard-zh-cn
opkg install luci-i18n-statistics-zh-cn
opkg install luci-i18n-sqm-zh-cn
opkg install luci-i18n-qos-zh-cn
opkg install luci-i18n-nft-qos-zh-cn
opkg install luci-i18n-upnp-zh-cn
opkg install luci-i18n-natmap-zh-cn
opkg install luci-i18n-ddns-zh-cn
opkg install luci-i18n-smartdns-zh-cn
opkg install luci-i18n-wol-zh-cn
opkg install luci-compat
opkg install luci-lib-ipkg
cd /tmp
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-theme-argon_2.3.1_all.ipk
opkg install luci-theme-argon_2.3.1_all.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-app-argon-config_0.9_all.ipk
opkg install luci-app-argon-config_0.9_all.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-i18n-argon-config-zh-cn_git-22.114.24542-d1474ba_all.ipk
opkg install luci-i18n-argon-config-zh-cn_git-22.114.24542-d1474ba_all.ipk
opkg install kmod-lp
opkg install kmod-usb-printer
opkg install luci-app-p910nd
opkg install luci-i18n-p910nd-zh-cn
service p910nd start
service p910nd enable
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-app-usb_printer_1.0_all.ipk
opkg install luci-app-usb_printer_1.0_all.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-i18n-usb_printer-zh-cn_unknown_all.ipk
opkg install luci-i18n-usb_printer-zh-cn_unknown_all.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/libcups_2.3.3-a_mipsel_24kc.ipk
opkg install libcups_2.3.3-a_mipsel_24kc.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/cups_2.3.3-a_mipsel_24kc.ipk
opkg install cups_2.3.3-a_mipsel_24kc.ipk
service cupsd start
service cupsd enable
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-app-virtualhere_2.0.2-20210917_mipsel.ipk
opkg install luci-app-virtualhere_2.0.2-20210917_mipsel.ipk
service vhusbd enable
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/vlmcsd_svn1113-1_mipsel_24kc.ipk
opkg install vlmcsd_svn1113-1_mipsel_24kc.ipk
wget --no-check-certificate https://gitee.com/le45tx1m/openwrt/raw/master/luci-app-vlmcsd_1.0.4-1_all.ipk
opkg install luci-app-vlmcsd_1.0.4-1_all.ipk
service kms start
service kms enable
rm -rf *.ipk
reboot